home *** CD-ROM | disk | FTP | other *** search
- Path: fas-news.harvard.edu!usenet
- From: Michael Barrientos <mbarrien@mbarrien.student.harvard.edu>
- Newsgroups: comp.lang.c
- Subject: Re: An incredably dumb question
- Date: Mon, 15 Jan 1996 22:41:25 -0500
- Organization: Harvard University
- Message-ID: <30FB1E65.2BC45E4@mbarrien.student.harvard.edu>
- References: <4d8tlk$pgk@ccnet3.ccnet.com> <4dc5d2$13m@news.infi.net>
- NNTP-Posting-Host: mbarrien.student.harvard.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b4 (X11; I; Linux 1.2.13 i586)
- CC: felinoid@ccnet.com
-
- Greg DiGiorgio wrote:
- >
- > In article <4d8tlk$pgk@ccnet3.ccnet.com>, felinoid@ccnet.com says...
-
- > > Here is my question....
- > >I am looking for an alternitive to getc() I want to read carciters
- > >as they are entered NOT after the user hits return.
- > >I feal so stupid that I can't find it myself or figure it out...
- >
- > *** Well, if it was a snake, it would still be hidden. So... what you
- > *** want to do is platform specific. That is, you want to read each
- > *** character as it is typed, not after the user presses <ENTER>.
- > *** With Turbo or Borland C/C++, the function you want is "getch". It
- > *** is prototyped in "conio.h" which is where all OS-specific console i/o
- > *** functions go. If you're not using Borland, I don't know what MS calls
- > *** it. If you're not programming MS-DOS, then I can't help either.
- >
-
- If you are using UNIX there is the curses library. Do a man curses
- and read on, what you are trying to do is very simple. You may also
- want to pick up "Programming with Curses" by John Strang, (O'Reilly)
- a great 60 page intro.
-
- good luck,
-
- Mike
-